<template>
    <div>
      <h3>{{ id }}</h3>
    </div>
</template>
           
<script>
export default{
    data(){
        return{
            id:''
        }
    },
    created(){
        this.id=this.$route.params.id
        this.content()
    },
    methods:{
        content(){
            this.$http.get(`api/getnew/${this.id}`).then(result => {
            console.log(result.body)
             })
        }
        
    }
}
</script>
<style scoped>
            
</style>